home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Algorithms for Image Analysis
/
Practical Algorithms for Image Analysis.iso
/
CH_5.7
/
XSGLL
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1999-09-11
|
1KB
|
74 lines
#
# xsgll Makefile
#
# Practical Algorithms for Image Analysis
#
# Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
#
SHELL = /bin/sh
NULL =
CC = /usr/bin/gcc
HOME = ../..
BIN = $(HOME)/binlin
IPATH = -I. -I$(HOME)/libtiff/libtiff -I$(HOME)/libimage -I$(HOME)/libip
LPATH = -L$(HOME)/libtiff/libtiff -L$(HOME)/libimage -L$(HOME)/libip
COPTS = -g -O
# OPTIONAL DEFINES #################################
DEFOPTS = -DLINUX
# SET CC COMPILE FLAGS #############################
CFLAGS = $(COPTS) $(IPATH) $(DEFOPTS)
CC = /usr/bin/gcc
LIB_TIFF=$(HOME)/libtiff/libtiff
LIB_IMAGE=$(HOME)/libimage
LDFLAGS=$(OPTIONS)
XSGLL = xsgll
# EXECUTABLES #######################################
EXECS = $(XSGLL)
# OBJECT FILES #####################################
XSGLLO = \
sall.o \
testsegm.o \
sgl_to_p.o \
llpar1.o \
prlpar.o \
xsgll.o \
sgll.o \
$(NULL)
# COMPILATION ######################################
all: $(EXECS)
$(XSGLL): $(XSGLLO)
$(CC) $(COPTS) $(XSGLLO) $(LPATH) -lip -limage -ltiff -lm -o $@
/bin/cp $@ $(BIN)
# HEADER DEPENDENCIES ###############################
HDRS = xsgll.h \
sal.h \
$(HOME)/libimage/tiffimage.h \
$(HOME)/libimage/draw.h \
$(HOME)/libip/ip.h \
$(NULL)
xsgll.o: $(HDRS)
clean:
rm -f $(EXECS) *.o *.a core
# START OVER ########################################
new:
rm -f $(EXECS) *.o *.a core
make